3.2- Multi Neurons Matrix
Lets solve the same thing using matrix way
| weight | input | bias |
|---|---|---|
| Substitute: |
Matrix multiplication gives:
Therefore:
The Important Connection
Expanded:
Contracted:
The matrix form is simply a compact way of writing all the individual neuron calculations together.

import numpy as np
x = np.array([2, 3, 4])
W = np.array([
[1, 2, 3],
[2, 1, 1]
])
b = np.array([5, 2])
y = W @ x + b
print(y)